package com.ruoyi.game.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 红包记录对象 game_packet_record
 * 
 * @author ruoyi
 * @date 2024-03-17
 */
public class GamePacketRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long packetId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 红包收入 */
    @Excel(name = "红包收入")
    private BigDecimal packetMoney;

    /** 获取途径 */
    @Excel(name = "获取途径")
    private String packetChannel;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date creationTime;

    public void setPacketId(Long packetId) 
    {
        this.packetId = packetId;
    }

    public Long getPacketId() 
    {
        return packetId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setPacketMoney(BigDecimal packetMoney) 
    {
        this.packetMoney = packetMoney;
    }

    public BigDecimal getPacketMoney() 
    {
        return packetMoney;
    }
    public void setPacketChannel(String packetChannel) 
    {
        this.packetChannel = packetChannel;
    }

    public String getPacketChannel() 
    {
        return packetChannel;
    }
    public void setCreationTime(Date creationTime) 
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime() 
    {
        return creationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("packetId", getPacketId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("packetMoney", getPacketMoney())
            .append("packetChannel", getPacketChannel())
            .append("creationTime", getCreationTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
